package com.dotndot.view.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

import com.dotndot.R;

public class DailyPicture extends BaseActivity implements OnClickListener
{

    private final int RETURN_ADD_DAILY_PICTURE = 0;
    private ImageView mScreen;
    private Button mAddBtn, mPlayBtn;

    @Override
    protected void onCreate( Bundle savedInstanceState )
    {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.dailypicture);

        viewInit();

    }

    @Override
    public void viewInit()
    {
        mScreen = (ImageView) findViewById(R.id.screen);
        mAddBtn = (Button) findViewById(R.id.add_btn);
        mAddBtn.setOnClickListener(this);
        mPlayBtn = (Button) findViewById(R.id.play_btn);
        mPlayBtn.setOnClickListener(this);
    }

    @Override
    public void receiveServerMsg( Message msg )
    {

    }

    @Override
    public void onClick( View v )
    {
        switch( v.getId() )
        {
            case R.id.add_btn:
                Intent intent = new Intent(this, AddDailyPicture.class);
                startActivityForResult(intent, RETURN_ADD_DAILY_PICTURE);
                break;

            case R.id.play_btn:
                break;
        }
    }

}
